package com.teaching.teachingsupport.common.pojo.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("course_teacher")
public class CourseTeacher {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @TableField("course_id")
    private Integer courseId;
    
    @TableField("teacher_id")
    private Integer teacherId;
    
    @TableField("role")
    private String role;  // 角色（主讲/助教等）
    
    @TableField("create_time")
    private LocalDateTime createTime;
    
    @TableField("update_time")
    private LocalDateTime updateTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private String teacherName;
    
    @TableField(exist = false)
    private String teacherTitle;
} 